Scenario #4090: Create Subsequent Membership of Partner

UseCase Create Membership => Membership: M-3101001 - Test AG

Properties

Required

Given

name value
partnerName Test AG
memberNumberSuffix 01
validFrom 2025-02-24
newStatus ACTIVE
membershipFeeBillable true

Partner: Test AG

HTTP GET "/api/hs/office/partners?name=Test+AG" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "4db6b8bf-d1f9-4a92-953c-787e345acb22", // Partner: P-31010 - Test AG
  "partnerNumber" : "P-31010",
  "partnerRel" : {
    "uuid" : "da7c6690-455b-404c-aac3-fa98660e5a7d", // partnerRelationUuid
    "anchor" : {
      "uuid" : "8f6b2e83-5cd0-4f3b-bac9-c56b374445cf", // Person: Hostsharing eG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Hostsharing eG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "holder" : {
      "uuid" : "3029ef4b-ab91-429d-855b-26a8bedcef6e", // Person: Test AG
      "personType" : "LEGAL_PERSON",
      "tradeName" : "Test AG",
      "salutation" : null,
      "title" : null,
      "givenName" : null,
      "familyName" : null
    },
    "type" : "PARTNER",
    "mark" : null,
    "contact" : {
      "uuid" : "ab067924-4231-4dce-a465-f768d7d54c2a", // Contact: Test AG - China
      "caption" : "Test AG - China",
      "postalAddress" : {
        "country" : "China",
        "province" : "Guangdong Province",
        "city" : "Dongguan City",
        "street" : "No.2 Commercial Second Street",
        "district" : "Niushan Wei Wu",
        "department" : "Executive Board",
        "building" : "Thi Chi Koh Building"
      },
      "emailAddresses" : {
        "main" : "norden@test-ag.example.org"
      },
      "phoneNumbers" : {
        "phone" : "++15 999 654321"
      }
    }
  },
  "details" : {
    "uuid" : "bbb58ff5-d4bf-4d7f-b6a4-e40af4f0142f",
    "registrationOffice" : "Registergericht Hamburg",
    "registrationNumber" : "1234567",
    "birthName" : null,
    "birthPlace" : null,
    "birthday" : null,
    "dateOfDeath" : null
  }
} ]

In production data, this query could result in multiple outputs. In that case, you have to find out which is the right one.

Create Membership: M-3101001 - Test AG

HTTP POST "/api/hs/office/memberships" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  <<EOF
{
  "partner.uuid" : "4db6b8bf-d1f9-4a92-953c-787e345acb22", // Partner: P-31010 - Test AG
  "memberNumberSuffix" : "01",
  "status" : "ACTIVE",
  "validFrom" : "2025-02-24",
  "membershipFeeBillable" : "true"
}
EOF
=> status: 201 CREATED ebac5095-28a8-41fd-b77b-fead6018f7b8

Verify That the Membership Got Created

HTTP GET "/api/hs/office/memberships/ebac5095-28a8-41fd-b77b-fead6018f7b8" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "ebac5095-28a8-41fd-b77b-fead6018f7b8",
  "partner" : {
    "uuid" : "4db6b8bf-d1f9-4a92-953c-787e345acb22", // Partner: P-31010 - Test AG
    "partnerNumber" : "P-31010",
    "partnerRel" : {
      "uuid" : "da7c6690-455b-404c-aac3-fa98660e5a7d", // partnerRelationUuid
      "anchor" : {
        "uuid" : "8f6b2e83-5cd0-4f3b-bac9-c56b374445cf", // Person: Hostsharing eG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Hostsharing eG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "3029ef4b-ab91-429d-855b-26a8bedcef6e", // Person: Test AG
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "PARTNER",
      "mark" : null,
      "contact" : {
        "uuid" : "ab067924-4231-4dce-a465-f768d7d54c2a", // Contact: Test AG - China
        "caption" : "Test AG - China",
        "postalAddress" : {
          "country" : "China",
          "province" : "Guangdong Province",
          "city" : "Dongguan City",
          "street" : "No.2 Commercial Second Street",
          "district" : "Niushan Wei Wu",
          "department" : "Executive Board",
          "building" : "Thi Chi Koh Building"
        },
        "emailAddresses" : {
          "main" : "norden@test-ag.example.org"
        },
        "phoneNumbers" : {
          "phone" : "++15 999 654321"
        }
      }
    },
    "details" : {
      "uuid" : "bbb58ff5-d4bf-4d7f-b6a4-e40af4f0142f",
      "registrationOffice" : "Registergericht Hamburg",
      "registrationNumber" : "1234567",
      "birthName" : null,
      "birthPlace" : null,
      "birthday" : null,
      "dateOfDeath" : null
    }
  },
  "mainDebitor" : null,
  "memberNumber" : "M-3101001",
  "memberNumberSuffix" : "01",
  "validFrom" : "2025-02-24",
  "validTo" : null,
  "status" : "ACTIVE",
  "membershipFeeBillable" : true
}

generated on 2026-08-10 03:08:31 for branch HEAD